<name>Melinda Lucia</name>
<profession>Expert Teacher of Sword</profession>
<dialogue>
  <greeting>
    <reply>
      <if>
        <reputation>70</reputation>
      </if>
      <text>Hi there, good folk! Nothing like a good ambush to liven things up.</text>
      <return>main</return>
    </reply>
    <reply>
      <text>That weak feeling is the blood to your brain being cut off. You'll be dead in less than a minute ... oh, you'r not him.</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>That's a sword ...</text>
      <npc>
        <reply>
          <text>Yeah, I have many skills. If you're looking for scrolls in shallow graves, as we are, it is wise to carry one. But if you carry one and don't know what to do with it, you'll be sorry, so you'd better improve. And some day you may use two, even.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>I would like to become a Sword Expert.</text>
      <npc>
        <reply>
          <if><grandmaster>Sword</grandmaster></if>
          <text>You already are a grandmaster!!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><master>Sword</master></if>
          <text>You already are a master!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expert>Sword</expert></if>
          <text>You already are an expert, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><skill>!Sword</skill></if>
          <text>You do not know the skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expertlevel>!Sword</expertlevel></if>
          <text>You are not good enough yet.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><gold>!1000</gold></if>
          <text>You cannot afford the fee.</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>Congratulations, [name]!</text>
          <return>main</return> 
          <script>
            <gold>-1000</gold>
            <expert>Sword</expert>
            <log>[name] Sword Expert</log>
          </script>
        </reply>
      </npc>
    </option>
    <option>
      <text>Who is the Master Teacher of Sword?</text>
      <npc>
        <reply>
          <text>Look for Fallingstar on the streets of Soronne. She's an elf.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Battle on!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>